<div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
    <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#syslogslist')}">
        <fieldset>
            <div style="margin:0; padding:1px 5px 5px;">
                <span>操作用户：</span>
                <input type="text" name="username" class="form-control" size="15">
                <span>创建时间:</span>
                <input type="text" value="" name="createdatestart" data-toggle="datepicker" placeholder="点击选择日期">
                <span>至</span>
                <input type="text" value="" name="createdateend" data-toggle="datepicker" placeholder="点击选择日期">
                &nbsp;<button type="submit" class="btn-green" data-icon="search">开始搜索！</button>
                <button type="reset" class="btn-orange" data-icon="times">重置</button>
            </div>
        </fieldset>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="syslogslist" data-toggle="datagrid" data-options="{
        height: '100%',
        local: 'remote',
        showToolbar: false,
        dataUrl: '/sysmanage/syslogs/listdata.do',
        paging: {pageSize:20, pageCurrent:1},
        linenumberAll: false,
        filterThead:false,
        sortAll: true
    }">
        <thead>
        <tr>
            <th data-options="{name:'id',align:'center' }" width="100px">id</th>
            <th data-options="{name:'content',align:'center'}" width="600px">日志内容</th>
            <th data-options="{align:'center',render:'setcreatedate'}" width="200px">创建时间</th>
            <th data-options="{name:'title',align:'center'}" width="150px">日志标题</th>
            <th data-options="{render:'sysusername',align:'center'}" width="150px">操作用户</th>
        </tr>
        </thead>
    </table>
</div>
<script type="text/javascript">
    function sysusername(value, data) {
        if (data.sysuserByUserid != null) {
            return data.sysuserByUserid.name;
        }

    }
    function setcreatedate(value, data) {
        return formatDate(new Date(data.createdate));
    }
</script>